﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace ConfExpert.Forms.Rapor.Aksesuar
{
    public partial class xrSubAksesuarCikisTalepRaporu : DevExpress.XtraReports.UI.XtraReport
    {
        DataSet dsSub;
        DataTable dtSub;
        public xrSubAksesuarCikisTalepRaporu()
        {
            InitializeComponent();
        }

        public void fillTable(DataTable dt)
        {
            dsSub = new DataSet();
            dtSub = new DataTable("dtSub");
            dsSub.Tables.Add(dtSub);
            dtSub.Merge(dt);

            this.DataMember = dtSub.TableName;
            this.DataSource = dsSub;

            tcMarka.DataBindings.Add("Text", null, "dtSub.Brand");
            tcSezon.DataBindings.Add("Text", null, "dtSub.Sezon");
            tcDosyaNo.DataBindings.Add("Text", null, "dtSub.DosyaNo");
            tcTalepEden.DataBindings.Add("Text", null, "dtSub.TalepEden");
            tcTalepTarihi.DataBindings.Add("Text", null, "dtSub.TalepTarihi");
            tcAdet.DataBindings.Add("Text", null, "dtSub.Adet");
            tcNot.DataBindings.Add("Text", null, "dtSub.Not");
        }

    }
}
